/**
 * 1  时间戳 T
 */

var time =parseInt(Date.now()/1000)+3600;
var T = time.toString(16);
var key = "key";



//console.log(d);//19eb212771e87cc3d478b9f32d6c7bf9 

var url = key+"/22222.mp4"+T;
var sign =md5(url);

var req_url="host"+"/22222.mp4?sign="+sign+"&t="+T;
console.log(req_url);

    function md5(data) {
        //md5
        var crypto = require('crypto');
        var content = data;
        var md5 = crypto.createHash('md5');
        md5.update(content);
        var d = md5.digest('hex').toLowerCase();
        return d;
    }